import requests from '../utils/requests'
export const head=()=>{
    return requests({
        url:'/home/category/head'
    })
}

export const banner=()=>{
    return requests({
        url:'/home/banner'
    })
}

export const news=()=>{
    return requests({
        url:'/home/new'
    })
}

export const hot=()=>{
    return requests({
        url:'/home/hot'
    })
}

export const brand=num=>{
    return requests({     
        url:`/home/brand?limit=${num}`
    })
}

export const goods=()=>{
    return requests({
        url:'/home/goods'
    })
}

export const category=id=>{
    return requests({
        url:'/category',
        data:{
            id
        }
    })
}